<?php 
session_start();

require('conf/runtime.conf.php');
require( DOM_PATH . 'Dom.init.php');

try {
	DomSql::init(MYSQL_HOST, MYSQL_USERNAME, MYSQL_PASSWORD, MYSQL_DATABASE);
} catch( Exception $e ) {
	if( $e->getCode() == 1049) {
		die('Please create database named: <b>'.MYSQL_DATABASE.'</b>. <br />This database will help to show all these samples.');
	} else {
		throw $e;
	}
}
DomAr::init();	

$site = new DomSite( SITE_URL, 'Site');
$site->display();
?>